package com.foreveross.pushsdk.demo;

import android.util.Log;

import com.foreveross.pushsdk.core.IMessageReceiver;
import com.foreveross.pushsdk.entity.Tags;
import com.foreveross.pushsdk.main.PushService;

/**
 * Created by HuangLi on 2014/6/6.
 */
public class MyService extends PushService {
    @Override
    public void onCreate() {
        userId="pushTest";
        serverHost="121.199.39.92";
        serverPort=8867;
        secret="a07fc12f-2ca2-48bc-8276-f64fc13317bf";
        appId="ec691bfe0d4b5b759d154c453ccd02cb";
        messageReceiver= new myMessageReceiver();
        tagses=new Tags[]{new Tags("platform","android")
                        ,new Tags("role","tester")};
        super.onCreate();
    }
}

class  myMessageReceiver implements IMessageReceiver{

    @Override
    public void receive(String msg) {
        Log.i("PushService",msg);
    }
}